Skip to content

Conversation

guisehn
Copy link

@guisehn guisehn commented Aug 24, 2024

Fixes #952

Removes access to global Buffer variable from Node when using @edge-runtime/jest-environment.

Buffer will not be available in production when using the edge runtime, so it should also be unavailable in tests. That way, we can catch in tests when unavailable APIs are used.

Copy link

changeset-bot bot commented Aug 24, 2024

🦋 Changeset detected

Latest commit: ea9a5a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@edge-runtime/jest-environment Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Aug 24, 2024

@guisehn is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@Kikobeats
Copy link
Member

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node API Buffer is available on @edge-runtime/jest-environment
2 participants